package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import service.SysRoleService;

import javax.annotation.Resource;

@Controller
@RequestMapping("/sysRole")
public class SysRoleController {
    @Resource
    SysRoleService sysRoleService;
    //json格式数据
    //{}:{"name":"张三","age":18}
    //[]:[10,20,30,40,50]

    @RequestMapping("/simpleList")
    @ResponseBody
    public Object simpleList(){
        return sysRoleService.selectList();
    }

}
